package cn.Mmovie.bean;

public class Auditorium {
    private int id;
    private Cinema cinema;
    private String name;
    private int capacity;

    public Auditorium() {
    }
    public Auditorium(int id) {
        this.id = id;
    }
    public Auditorium(int id,String name) {
        this.id = id;
        this.name=name;
    }
    public Auditorium(int id, Cinema cinema, String name, int capacity) {
        this.id = id;
        this.cinema = cinema;
        this.name = name;
        this.capacity = capacity;
    }
    public Auditorium(Cinema cinema, String name, int capacity) {
        this.cinema = cinema;
        this.name = name;
        this.capacity = capacity;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return cinema
     */
    public Cinema getCinema() {
        return cinema;
    }

    /**
     * 设置
     * @param cinema
     */
    public void setCinema(Cinema cinema) {
        this.cinema = cinema;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return capacity
     */
    public int getCapacity() {
        return capacity;
    }

    /**
     * 设置
     * @param capacity
     */
    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public String toString() {
        return "Auditorium{id = " + id + ", cinema = " + cinema + ", name = " + name + ", capacity = " + capacity + "}";
    }
}
